package com.book.api;

import com.book.pojo.Reward;
import com.book.pojo.Score;
import com.book.pojo.MonthlyPass;
import com.book.pojo.Shoucang;
import com.book.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("ddbook-readers-service")
public interface ReaderApi {

    @GetMapping("/shoucang/selectBookNumByBid")
    public Result selectBookNumByBid(@RequestParam Long bid);

    //收藏榜单
    @GetMapping("/shoucang/CollectRanking")
    public List<Shoucang> CollectRanking();

    //月票榜
    @GetMapping("/monthly-pass/monthlyRanking")
    public List<MonthlyPass> monthlyRanking();

    //评分榜表
    @GetMapping("/score/ScoreRanking")
    public List<Score> ScoreRanking ();

    //打赏榜
    @GetMapping("/reward/RewardRanking")
    public List<Reward> RewardRanking();
}
